#include "ugui.h"
#include "st7735s.h"

void _HW_DrawPoint(UG_S16 x, UG_S16 y, UG_COLOR c)
{
    ST7735S_DrawPoint(x, y, c);
}

UG_RESULT _HW_DrawLine(UG_S16 x1, UG_S16 y1, UG_S16 x2, UG_S16 y2, UG_COLOR c)
{
    ST7735S_DrawLine(x1, y1, x2, y2, c);
    return UG_RESULT_OK;
}

UG_RESULT _HW_FillFrame(UG_S16 x1, UG_S16 y1, UG_S16 x2, UG_S16 y2, UG_COLOR c)
{
    ST7735S_DrawRect(x1, y1, x2, y2, c);
    return UG_RESULT_OK;
}